//
// Created by zhengbo on 23-4-18.
//

#ifndef VISUALIZATION_TOOL_CAMERAIMAGE_H
#define VISUALIZATION_TOOL_CAMERAIMAGE_H

#include <opencv4/opencv2/core.hpp>
#include "RenderObject.h"

class CameraImage : public RenderObject {
public:
    CameraImage(cv::Mat image);
    ~CameraImage() override;
    void Update() override;

    void Render() override;

    void InitBuffer() override;

    void ReleaseBuffer() override;

private:
    cv::Mat mImage;
    uint32_t mTextureId;
};


#endif //VISUALIZATION_TOOL_CAMERAIMAGE_H
